<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>北京进销存系统-系统主页</title>
<link href="../css/index.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/zTreeStyle/zTreeStyle.css" type="text/css">

<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
<%-- <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.form.js"></script>
 --%>	<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.ztree.core.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.ztree.excheck.js"></script>
<script>

	var setting={
			check:{
				enable:true
			},
			data:{
				simpleData:{
					enable:true,
					idKey:"uuid",
					pIdKey:"puuid",
					rootPid:"0"
				}
			}
	};
	alert("1");
	$(function(){
		alert("1");
		$.ajax({
			url : "${pageContext.request.contextPath}/findMenus.action",
			type : "POST",
			dataType : "json", 
			data : {},
			
			success : function(result, start, resp) {
			   alert(resp.responseText);    
			    $.fn.zTree.init( $("#demoTree") , setting,  result);
			} 
		});
		
		
	});
	
</script>
</head>
<body>
	<div class="container">
		<div class="head">
			<div class="head-left">
				<span style="font-weight:bold; color:#1f4906">欢迎您-</span><br />
				<span style="color:#4a940d">${emp.userName }</span>
			</div>
			<div class="head-right">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="32%">
							<a href="employee/changePwd.jsp" target="main">
								<img src="../images/head-l.gif"	border="0" />
							</a>
						</td>
						<td width="26%">
							<a href="../index2.jsp">
								<img src="../images/head-m.gif"	border="0" />
							</a>
						</td>
						<td width="7%">&nbsp;</td>
						<td width="35%"><a href="#"><img src="../images/head-r.gif"
								border="0" />
						</a>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<!--"head"end-->

		<div class="content">
			<div class="left">
				<div style="margin-left:2px;">
					<img src="../images/left-top.gif" width="162" height="25" />
				</div>
				<div class="left-bottom">
						<ul id="demoTree" class="ztree">
						
						</ul>
				</div>
				<!--"left-bottom"end-->
			</div>
			<!--"left"end-->

			<iframe id="frame-contect" src="context.jsp"
				style="width:848px;float:right;height:530px" scrolling="no"
				name="main" frameborder="0"></iframe>
			<!--"content-right"end-->
		</div>
		<!--"content"end-->
		<div class="footer">
			<div style="margin-top:5px;">
				<table width="98%" border="0" cellpadding="0" cellspacing="0"
					align="center">
					<tr>
						<td width="82%"><img src="../images/icon_1.gif" />&nbsp; </td>
						<td width="18%" valign="middle"><img src="../images/icon_2.gif" />&nbsp;
							<a class="lanyo" href="#">如有疑问请与技术人员联系</a></td>
					</tr>
				</table>
			</div>

		</div>
		<!--"footer"end-->
	</div>
	<!--"container"end-->
	<%@include file="/jsps/tools/mask.jsp"%>
</body>
</html>
